' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' Q%          N a m e :   M o t o r C a l i b _ E x i b i t _ 0 4 . t x t             D a t e :   0 9   D i c   2 0 2 2   Q%
 
 ' Q%      A u t h o r :   L e o n a r d o                                                                                 Q%
 
 ' Q%        S c o p e :   T e s t   a l l   t h e   f u n c t i o n a l i t y   o f   t h e   P V C - 1 5 0               Q%
 
 ' `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 ' Q%H a r d w a r e :   5   F e e T e c h   S T S 3 2 1 5       n e w   M O T O R                                         Q%
 
 ' _% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %b%
 
 ' Q%        N o t e :   V a c u u m   m o t o r   a n d   v a l v e   a t   6 V                                           Q%
 
 ' Q%                    F e e T e c h   a t   7 . 5 V                                                                     Q%
 
 ' _% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %b%
 
 ' Q%I S O       C u l t u r e     G e n d e r       A g e           N a m e                                               Q%
 
 ' _% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %b%
 
 ' Q%E N G       E N - U S         M a l e           A d u l t       M i c r o s o f t   D a v i d   D e s k t o p         Q%
 
 ' Q%E N G       E N - U S         F e m a l e       A d u l t       M i c r o s o f t   Z i r a   D e s k t o p           Q%
 
 ' Q%I T A       I T - I T         F e m a l e       A d u l t       M i c r o s o f t   E l s a   D e s k t o p           Q%
 
 ' Q%J P N       J A - J P         F e m a l e       A d u l t       M i c r o s o f t   H a r u k a   D e s k t o p       Q%
 
 ' Q%Z H O       Z H - C N         F e m a l e       A d u l t       M i c r o s o f t   H u i h u i   D e s k t o p       Q%
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 O p t i o n   S p e e d   9 
 
 B e e p   " 2 5 0 0   2 0 ,   1 5 0 0   1 0 0 " 
 
 ' L o a d   i m a g e s \ P V C A r m _ 1 5 0 . j p g 
 
 T T S   S e l e c t V o i c e   " E N G " 
 
 s 1   =   T T S v o i c e s 
 
 T T S   S e t V o l u m e   1 0 0 
 
 T T S   S e t S p e e d   - 2 
 
 T T S   S e l e c t V o i c e   3 
 
 ' T T S   S p e a k   " T h e r e m i n o   A u t o m a t i o n   p r o g r a m m i n g   l a n g u a g e   i s   r u n n i n g . " 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S L O T   T E X T   f o r   C O M M A N D S   a n d   R E S P O N S E S               Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s T o M o t o r s             =   5 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o m m a n d s T o C o b o t               =   5 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ R e s p o n s e s F r o m C o b o t         =   5 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ E x t e r n a l C o m m a n d s             =   5 3 
 
 V a r i a b l e   N u m e r i c   S l o t _ R e s p o n s e s F r o m Q R D e c o d e   =   5 4 
 
 V a r i a b l e   N u m e r i c   S l o t _ W o r d R e c o g n i z e d                 =   5 5 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %      %%%%  %%%%%
 
 '   Q%  S L O T   I N I T I A L I Z A T I O N S                                               Q%  %%%%  %      %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%  %%%%      %
 
 ' V a r i a b l e   N u m e r i c   S l o t _ V a c u u m             =       1 
 
 V a r i a b l e   N u m e r i c   S l o t _ F i v e B u t t o n     =       2 6 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d R                 =       7 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d G                 =       8 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d B                 =       9 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ P e d a l               =     1 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ P u m p                 =     1 1 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ S i g n a l S c o p e   =     1 3 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ S l i d e r 1           =       2 
 
 V a r i a b l e   N u m e r i c   S l o t _ S l i d e r 2           =       3 
 
 V a r i a b l e   N u m e r i c   S l o t _ S l i d e r 3           =       4 
 
 V a r i a b l e   N u m e r i c   S l o t _ S l i d e r 4           =       5 
 
 V a r i a b l e   N u m e r i c   S l o t _ S l i d e r 5           =       6 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r 1         =     2 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r 2         =     2 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r 3         =     2 3 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r 4         =     2 4 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r 5         =     2 5 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r S l o w   =     3 1 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 1                     =   1 0 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 2                     =   2 0 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 3                     =   3 0 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 4                     =   4 0 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 5                     =   5 0 1 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 1 p o s               =   1 0 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 2 p o s               =   2 0 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 3 p o s               =   3 0 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 4 p o s               =   4 0 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 5 p o s               =   5 0 2 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 1 c e n t e r         =   1 2 3 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ M o t o r s F P S       =     5 6 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%%%
 
 '   Q%  B U T T O N S                                                                         Q%  %%%%  %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%      %
 
 B u t t o n   1   L a b e l   M o t o r F P S 
 
 B u t t o n   M o t o r F P S   T e x t   " N O   M O T O R S " 
 
 B u t t o n   M o t o r F P S   C o l o r   F l a s h i n g 7   Y e l l o w   D a r k O r a n g e 
 
 
 
 B u t t o n   2   L a b e l   " M o t o r T e m p " 
 
 
 
 B u t t o n   3   L a b e l   C u r r e n t M e t e r 
 
 
 
 B u t t o n   4   L a b e l   G o T o S h o w 
 
 B u t t o n   G o T o S h o w   T e x t   " G o   t o   s h o w " 
 
 B u t t o n   G o T o S h o w   C o l o r   Y e l l o w 
 
 
 
 B u t t o n   5   L a b e l   G o T o Z e r o 
 
 B u t t o n   G o T o Z e r o   T e x t   " G o   t o   Z e r o " 
 
 B u t t o n   G o T o Z e r o   C o l o r   Y e l l o w 
 
 
 
 B u t t o n   6   L a b e l   C r o u c h 
 
 B u t t o n   C r o u c h   T e x t   " G o   C r o u c h " 
 
 B u t t o n   C r o u c h   C o l o r   G o l d 
 
 
 
 B u t t o n   7   L a b e l   C o p y P o s i t i o n s T o D e s t i n a t i o n s 
 
 B u t t o n   C o p y P o s i t i o n s T o D e s t i n a t i o n s     T e x t   " C o p y   P o s i t i o n s "   +   C R L F   +   " T o   D e s t i n a t i o n s " 
 
 B u t t o n   C o p y P o s i t i o n s T o D e s t i n a t i o n s     C o l o r   O r a n g e 
 
 
 
 ' B u t t o n   8   L a b e l   A c t i v a t e M o t o r s 
 
 ' B u t t o n   A c t i v a t e M o t o r s     T e x t   " A c t i v a t e "   +   C R L F   +   " M o t o r s " 
 
 ' B u t t o n   A c t i v a t e M o t o r s     C o l o r   O r a n g e 
 
 
 
 B u t t o n   9   L a b e l   R e c o g n i z e E n c o d e r 
 
 B u t t o n   R e c o g n i z e E n c o d e r     T e x t   " R e c o g n i z e "   +   C R L F   +   " E n c o d e r " 
 
 B u t t o n   R e c o g n i z e E n c o d e r     C o l o r   L i g h t B l u e 
 
 
 
 ' B u t t o n   6   L a b e l   S e t C e n t e r H e r e 
 
 ' B u t t o n   S e t C e n t e r H e r e   T e x t   " S e t   C e n t e r   H e r e " 
 
 ' B u t t o n   S e t C e n t e r H e r e   C o l o r   O r a n g e 
 
 ' 
 
 ' B u t t o n   7   L a b e l   C a l i b r a t e T o Z e r o 
 
 ' B u t t o n   C a l i b r a t e T o Z e r o     T e x t   " C a l i b r a t e   t o   Z e r o " 
 
 ' B u t t o n   C a l i b r a t e T o Z e r o     C o l o r   O r a n g e 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 ' B u t t o n   2   L a b e l   J o b Q r C o d e 
 
 ' B u t t o n   J o b Q r C o d e   T e x t   " J O B   Q R c o d e " 
 
 ' B u t t o n   J o b Q r C o d e   C o l o r   C y a n 
 
 ' 
 
 ' B u t t o n   4   L a b e l   S l i d e r s 
 
 ' B u t t o n   S l i d e r s   T e x t   " S l i d e r s " 
 
 ' B u t t o n   S l i d e r s   C o l o r   C y a n 
 
 
 
 ' B u t t o n   6   L a b e l   V o i c e 
 
 ' B u t t o n   V o i c e   T e x t   " V o i c e " 
 
 ' B u t t o n   V o i c e   C o l o r   P a l e T u r q u o i s e 
 
 
 
 B u t t o n   1 0   L a b e l   T u n a C a n s 
 
 B u t t o n   T u n a C a n s   T e x t   " T u n a   c a n s " 
 
 B u t t o n   T u n a C a n s   C o l o r   I n d i g o 
 
 
 
 B u t t o n   1 1   L a b e l   W a n p y J o b 5 
 
 B u t t o n   W a n p y J o b 5   T e x t   " W a n p y   J o b   5 " 
 
 B u t t o n   W a n p y J o b 5   C o l o r   I n d i g o 
 
 
 
 B u t t o n   1 2   L a b e l   S t a r t P u m p 
 
 B u t t o n   S t a r t P u m p   T e x t   " S t a r t   P u m p " 
 
 B u t t o n   S t a r t P u m p   C o l o r   L i m e 
 
 
 
 B u t t o n   1 3   L a b e l   S t o p P u m p 
 
 B u t t o n   S t o p P u m p   T e x t   " S t o p   P u m p " 
 
 B u t t o n   S t o p P u m p   C o l o r   C r i m s o n 
 
 
 
 B u t t o n   1 5   L a b e l   C l o s e A l l 
 
 B u t t o n   C l o s e A l l   T e x t   " C L O S E   A L L " 
 
 B u t t o n   C l o s e A l l   C o l o r   R e d 
 
 
 
 B u t t o n   1 7   L a b e l   H o m i n g 
 
 B u t t o n   H o m i n g   T e x t   " H O M I N G " 
 
 B u t t o n   H o m i n g   C o l o r   G o l d 
 
 
 
 B u t t o n   1 8   L a b e l   H o m i n g 1 
 
 B u t t o n   H o m i n g 1   T e x t   " H o m i n g   1 " 
 
 B u t t o n   H o m i n g 1   C o l o r   Y e l l o w 
 
 
 
 B u t t o n   1 9   L a b e l   H o m i n g 2 
 
 B u t t o n   H o m i n g 2   T e x t   " H o m i n g   2 " 
 
 B u t t o n   H o m i n g 2   C o l o r   Y e l l o w 
 
 
 
 B u t t o n   2 0   L a b e l   H o m i n g 3 
 
 B u t t o n   H o m i n g 3   T e x t   " H o m i n g   3 " 
 
 B u t t o n   H o m i n g 3   C o l o r   Y e l l o w 
 
 
 
 B u t t o n   2 1   L a b e l   H o m i n g 4 
 
 B u t t o n   H o m i n g 4   T e x t   " H o m i n g   4 " 
 
 B u t t o n   H o m i n g 4   C o l o r   Y e l l o w 
 
 
 
 B u t t o n   2 2   L a b e l   H o m i n g 5 
 
 B u t t o n   H o m i n g 5   T e x t   " H o m i n g   5 " 
 
 B u t t o n   H o m i n g 5   C o l o r   Y e l l o w 
 
 
 
 B u t t o n   2 4   L a b e l   C l o s e S c o p e s 
 
 B u t t o n   C l o s e S c o p e s   T e x t   " C l o s e   S c o p e s " 
 
 B u t t o n   C l o s e S c o p e s   C o l o r   S k y B l u e 
 
 
 
 B u t t o n   2 5   L a b e l   O p e n S c o p e _ 1 
 
 B u t t o n   O p e n S c o p e _ 1   T e x t   " O p e n   S c o p e   1 " 
 
 B u t t o n   O p e n S c o p e _ 1   C o l o r   P a l e T u r q u o i s e 
 
 
 
 B u t t o n   2 6   L a b e l   O p e n S c o p e _ 2 
 
 B u t t o n   O p e n S c o p e _ 2   T e x t   " O p e n   S c o p e   2 " 
 
 B u t t o n   O p e n S c o p e _ 2   C o l o r   P a l e T u r q u o i s e 
 
 
 
 B u t t o n   2 7   L a b e l   O p e n S c o p e _ 3 
 
 B u t t o n   O p e n S c o p e _ 3   T e x t   " O p e n   S c o p e   3 " 
 
 B u t t o n   O p e n S c o p e _ 3   C o l o r   P a l e T u r q u o i s e 
 
 
 
 B u t t o n   2 8   L a b e l   O p e n S c o p e _ 4 
 
 B u t t o n   O p e n S c o p e _ 4   T e x t   " O p e n   S c o p e   4 " 
 
 B u t t o n   O p e n S c o p e _ 4   C o l o r   P a l e T u r q u o i s e 
 
 
 
 B u t t o n   2 9   L a b e l   O p e n S c o p e _ 5 
 
 B u t t o n   O p e n S c o p e _ 5   T e x t   " O p e n   S c o p e   5 " 
 
 B u t t o n   O p e n S c o p e _ 5   C o l o r   P a l e T u r q u o i s e 
 
 
 
 B u t t o n   3 0   L a b e l   O p e n F P S 
 
 B u t t o n   O p e n F P S   T e x t   " O p e n   F P S " 
 
 B u t t o n   O p e n F P S   C o l o r   P a l e T u r q u o i s e 
 
 
 
 B u t t o n   3 1   L a b e l   V o i c e L o o p 
 
 B u t t o n   V o i c e L o o p   T e x t   " V o i c e L o o p " 
 
 B u t t o n   V o i c e L o o p   C o l o r   B l u e 
 
 
 
 B u t t o n   3 2   L a b e l   S a y 
 
 B u t t o n   S a y   T e x t   " S a y " 
 
 B u t t o n   S a y   C o l o r   D e e p S k y B l u e 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O A D   A P P S                                                                     Q%  %      %    %  %%%%  %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %    %  %%%%
 
 L o a d   T h e r e m i n o _ M o t o r s . e x e 
 
 W a i t A p p l i c a t i o n s S t a r t e d 
 
 ' '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     M O T O R S   m u s t   b e   a c t i v e   b e f o r e   C o b o t 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 L o a d   T h e r e m i n o _ H A L . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ M o t o r s . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ S T R . e x e 
 
 ' L o a d   T h e r e m i n o _ M i c r o V i d e o . e x e 
 
 ' L o a d   T h e r e m i n o _ Q R d e c o d e r . e x e 
 
 ' L o a d   T h e r e m i n o _ V o i c e C o m m a n d s . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r _ S t r i n g s . e x e 
 
 L o a d   T h e r e m i n o _ C o b o t . e x e 
 
 ' W a i t A p p l i c a t i o n s S t a r t e d 
 
 L o a d   H i d e 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%    %%%%  %%%%%  %%%%%  %%%%%  %%%%%
 
 '   Q%    E X E C U T I O N   S T A R T   F R O M   H E R E                                   Q%    %%%%      %      %%%%%  %%%%%      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%%      %      %      %  %    %%      %
 
 R e s e t E n c o d e r s 
 
 Y e l l o w O n 
 
 S l o t ( S l o t _ S i g n a l S c o p e )   =   1 0 0 0 
 
 ' C o p y P o s i t i o n s T o D e s t i n a t i o n s 
 
 
 
 ' D i s a b l e H o m e B u t t o n s 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - -   G O T O   H o m i n g   -   C o m m a n d   t o   C o b o t 
 
 ' W a i t C o b o t R e a d y 
 
 ' S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( G o t o H o m i n g ) 
 
 
 
 ' H o m i n g 
 
 
 
 ' C o n t r o l s   O p e n T e x t B o x 
 
 ' C o n t r o l s   C l e a r T e x t B o x 
 
 
 
 L o o p 
 
 
 
 S t o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O O P                                                                               Q%  %      %    %  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %%%%  %
 
 L a b e l   L o o p 
 
 	 C u r r e n t M e t e r 
 
 	 S h o w M o t o r F P S 
 
 	 P o s i t i o n D e l t a 
 
 	 T e s t T e m p 
 
 	 I n t e r p r e t a t e V o i c e C o m m a n d s 
 
 	 E n c o d e r 
 
 	 F i v e B u t t o n 
 
 	 I f   S l o t ( S l o t _ M o t o r s F P S )   <   5 
 
 	 	 P r i n t   " T h e   r o b o t   i s   n o t   i n   P O W E R   O N   o r   s e r i a l   p o r t   i s   n o t   c o r r e c t . " 
 
 	 	 E n d 
 
 	 E n d I f 
 
 	 I f   S l o t ( 0 )   =   - 2 
 
 	 	 P r i n t   " M a s t e r   d i s c o n n e c t e d . " 
 
 	 	 E n d 
 
 	 E n d I f 
 
 G o t o   L o o p 
 
 
 
 
 
 L a b e l   P o s i t i o n D e l t a 
 
 	 S l o t ( 1 0 9 )   =   S l o t ( 1 0 1 )   -   S l o t ( 1 0 2 ) 
 
 	 S l o t ( 2 0 9 )   =   S l o t ( 2 0 1 )   -   S l o t ( 2 0 2 ) 
 
 	 S l o t ( 3 0 9 )   =   S l o t ( 3 0 1 )   -   S l o t ( 3 0 2 ) 
 
 	 S l o t ( 4 0 9 )   =   S l o t ( 4 0 1 )   -   S l o t ( 4 0 2 ) 
 
 	 S l o t ( 5 0 9 )   =   S l o t ( 5 0 1 )   -   S l o t ( 5 0 2 ) 
 
 R e t u r n 
 
 
 
 L a b e l   T e s t T e m p 
 
 	 V a r i a b l e   N u m e r i c   T T 1 
 
 	 V a r i a b l e   N u m e r i c   T T 2   =   0 
 
 	 ' T T 2   =   0 
 
 	 F o r   T T 1   =   1   T o   3       ' 5 
 
 	 	 T T 2   =   M a x ( T T 2 ,   S l o t ( T T 1   *   1 0 0   +   6 ) ) 
 
 	 N e x t 
 
 	 B u t t o n   M o t o r T e m p   T e x t   " M a x T   "   +   T T 2   +   "  C " 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E N A B L E / D I S A B L E   B U T T O N S                                           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E n a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   4 8 
 
 	 	 B u t t o n   v 1   E n a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   4 8 
 
 	 	 B u t t o n   v 1   D i s a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%    W A I T   C O B O T   R E A D Y                                                     Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   W a i t C o b o t R e a d y 
 
 	 V a r i a b l e   N u m e r i c   W C R 1 
 
 	 F o r   W C R 1   =   1   T o   I n f i n i t y 
 
 	 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 	 I f   S l o t T e x t ( S l o t _ R e s p o n s e s F r o m C o b o t )   =   " R e a d y " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%    W A I T   A P P S   S T A R T E D                                                   Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   W a i t A p p l i c a t i o n s S t a r t e d 
 
 	 S l o t ( S l o t _ M o t o r s F P S )   =   0 
 
 	 W a i t   S l o t ( S l o t _ M o t o r s F P S )   >   1 0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%%  %%%%  %%%%
 
 '   Q%  S T O P   E V E N T   ( w h e n   p r e s s i n g   s t o p   b u t t o n )           Q%  %%%%      %      %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%      %      %%%%  %
 
 L a b e l   E v e n t S t o p 
 
 	 S t o p P u m p 
 
 	 S t o p C o b o t 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 ' 	 G o T o S h o w 
 
 ' 	 S t o p C o b o t A n d G o t o H o m i n g 
 
 E n d 
 
 
 
 ' L a b e l   S t o p C o b o t A n d G o t o H o m i n g 
 
 ' 	 ' S t o p C o b o t 
 
 ' 	 W a i t M o t o r s N o t M o v i n g 
 
 ' 	 ' G o t o S a f e P o s i t i o n 
 
 ' R e t u r n 
 
 
 
 L a b e l   G o t o S a f e P o s i t i o n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( G o t o H o m i n g ) 
 
 	 W a i t M o t o r s N o t M o v i n g 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%  %      %%%%  %%%%  %%%%
 
 '   Q%  C L O S E   A L L             ( w h e n   p r e s s i n g   X   o n   f o r m )       Q%  %      %      %    %  %%%%  %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%  %%%%  %%%%
 
 L a b e l   C l o s e A l l 
 
 	 S t o p P u m p 
 
 	 S t o p C o b o t 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 ' 	 G o T o S h o w 
 
 ' 	 S t o p C o b o t A n d G o t o H o m i n g 
 
 	 L o a d   C l o s e A l l 
 
 E n d 
 
 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     S E N D   C O M M A N D   ( d e f a u l t   t i m e o u t   =   0 . 5   S e c ) 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   S e n d C o m m a n d 	 	 	 ' ( D e s t i n a t i o n   S l o t ) ( C o m m a n d   S t r i n g ) 
 
 	 V a r i a b l e   N u m e r i c   S C 1 
 
 	 V a r i a b l e   S t r i n g     S C 2 
 
 	 V a r i a b l e   N u m e r i c   S C 3   =   0 . 5   ' < - -   T h e   t i m e o u t   i n   s e c o n d s 
 
 	 V a r i a b l e   N u m e r i c   S C 4 
 
 	 S l o t T e x t   S C 1   =   S C 2 
 
 	 F o r   S C 4   =   0 . 1   T o   S C 3   S t e p   0 . 1 
 
 	 	 I f   S l o t T e x t ( S C 1 )   =   " " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     C O M M A N D S   t o   C o b o t 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   E x e c C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( E n a b l e R e p e a t ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   S t o p C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t o p E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   A r r o w U p C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( A r r o w U p ) 
 
 R e t u r n 
 
 
 
 L a b e l   A r r o w D o w n C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( A r r o w D o w n ) 
 
 R e t u r n 
 
 
 
 L a b e l   E x e c u t e C o b o t F r o m S e l e c t e d L i n e 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%
 
 '   Q%    S   U   B   R   O   U   T   I   N   E       A   R   E   A                           Q%  %%%%  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %%%%
 
 L a b e l   E n a b l e H o m e B u t t o n s 
 
 	 F o r   v 1   =   1 7   T o   2 2 
 
 	 	 B u t t o n   v 1   E n a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e H o m e B u t t o n s 
 
 	 F o r   v 1   =   1 7   T o   2 2 
 
 	 	 B u t t o n   v 1   D i s a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   C u r r e n t M e t e r 
 
 	 V a r i a b l e   N u m e r i c   m A 
 
 	 m A   =   S l o t ( 1 0 8 )   +   S l o t ( 2 0 8 )   +   S l o t   ( 3 0 8 )   +   S l o t   ( 4 0 8 )   +   S l o t   ( 5 0 8 ) 
 
 	 m A   =   F i l t e r L P ( m A ,   0 . 1 ,   1 )   ' < - -   F i l t e r   0 . 5   s e c o n d s   /   1   p o l e 
 
 	 B u t t o n   C u r r e n t M e t e r   T e x t   " C u r r e n t   "   +   S t r ( m A ,   " 0   m A " ) 
 
 R e t u r n 
 
 
 
 L a b e l   S h o w M o t o r F P S 
 
 	 V a r i a b l e   S t r i n g   M o t o r s A r e E n a b l e d 
 
 	 V a r i a b l e   N u m e r i c   S M F 1   =   S l o t ( S l o t _ M o t o r s F P S ) 
 
 	 I f   S M F 1   >   3 0 
 
 	 	 I f   M o t o r s A r e E n a b l e d   < >   " T R U E " 
 
 	 	 	 M o t o r s A r e E n a b l e d   =   " T R U E " 
 
 	 	 	 B u t t o n   M o t o r F P S   C o l o r   G r e e n Y e l l o w 
 
 	 	 E n d I f 
 
 	 	 B u t t o n   M o t o r F P S   T e x t   " F P S   "   +   S t r ( S M F 1 ) 
 
 	 E l s e 
 
 	 	 I f   M o t o r s A r e E n a b l e d   =   " T R U E " 
 
 	 	 	 M o t o r s A r e E n a b l e d   =   " F A L S E " 
 
 	 	 	 B u t t o n   M o t o r F P S   C o l o r   F l a s h i n g 7   Y e l l o w   D a r k O r a n g e 
 
 	 	 	 B u t t o n   M o t o r F P S   T e x t   " N O   M O T O R S " 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   M o t o r F P S 
 
 	 I f   M o t o r s A r e E n a b l e d   =   " T R U E " 
 
 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( D i s a b l e C o n n e c t i o n ) 
 
 	 E l s e 
 
 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( E n a b l e C o n n e c t i o n ) 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   S t a r t P u m p 
 
 	 B l u e O n 
 
 	 ' S l o t ( S l o t _ S i g n S c o p e )   =   1 0 0 0 
 
 	 S l o t ( S l o t _ P u m p )   =   1 0 0 0 
 
 	 B u t t o n   S t a r t P u m p   D i s a b l e d 
 
 	 B u t t o n   S t o p P u m p   E n a b l e d 
 
 	 W a i t   S e c o n d s   0 . 4 
 
 	 
 
 	 ' I f   S l o t ( S l o t _ V a c u u m )   >   5 6 
 
 	 ' 	 ' B e e p   " 5 0 0 ,   3 0 0 ,   0 ,   3 0 0 " 
 
 	 ' 	 ' S a y V a c u u m P r o b l e m 
 
 	 ' 	 R e d O n 
 
 	 ' 	 S t o p P u m p 
 
 	 ' 	 P r i n t   " V a c u u m   P r o b l e m "   +   C R L F 
 
 	 ' 	 ' C o b o t S h o w P o i n t 
 
 	 ' 	 P r i n t   " E x e c u t i o n   s t o p p e d "   +   C R L F 
 
 	 ' 	 R e d B l i n k 
 
 	 ' 	 E n d 
 
 	 ' E l s e 
 
 	 ' 	 P r i n t   " T a r g e t   p i c k e d " 
 
 	 ' E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   R e c o g n i z e E n c o d e r 
 
 	 S l o t ( 0 )   =   R e c o g n i z e 
 
 R e t u r n 
 
 
 
 L a b e l   S t o p P u m p 
 
 	 S l o t ( S l o t _ P u m p )   =   0 
 
 	 B u t t o n   S t o p P u m p   D i s a b l e d 
 
 	 B u t t o n   S t a r t P u m p   E n a b l e d 
 
 	 G r e e n O n 
 
 R e t u r n 
 
 
 
 L a b e l   G o T o S h o w 
 
 	 M o v e M o t o r T o ( 4 ) ( 5 0 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 1 )   ( 0 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 3 ) ( - 5 3 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 2 ) ( 1 6 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 5 )   ( 9 0 ) ( 0 . 1 ) 
 
 R e t u r n 
 
 
 
 L a b e l   G o T o Z e r o 
 
 	 M o v e M o t o r T o ( 4 ) ( 9 0 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 1 ) ( 0 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 2 ) ( 0 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 3 ) ( 0 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 5 ) ( 0 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 4 ) ( 0 ) ( 0 . 1 ) 
 
 R e t u r n 
 
 
 
 L a b e l   C r o u c h 
 
 	 M o v e M o t o r T o ( 4 ) ( 9 0 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 1 ) ( - 7 8 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 2 ) ( 3 6 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 3 ) ( - 5 3 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 5 ) ( 9 0 ) ( 0 . 1 ) 
 
 	 M o v e M o t o r T o ( 4 ) ( 4 ) ( 0 . 1 ) 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%      %%%    %    %  %%%%%
 
 '   Q%  F I V E   P U S H   B U T T O N S                                                     Q%  %%%      %%%%  %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%      %%%%  %%%%      %
 
 V a r i a b l e   S t r i n g   P r e s s e d B u t t o n 
 
 L a b e l   F i v e B u t t o n 
 
 	 V a r i a b l e   N u m e r i c   F B 0 
 
 	 V a r i a b l e   N u m e r i c   F B 1 
 
 	 F B 1   =   S l o t ( S l o t _ F i v e B u t t o n ) 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   T e s t   b u t t o n s 
 
 	 I f   F B 0   =   0 
 
 	 	 F B 0   =   1 
 
 	 	 S e l e c t   T r u e 
 
 	 	 	 C a s e   F B 1   >   5 0 0 
 
 	 	 	 	 P r i n t   " " 
 
 	 	 	 	 P r e s s e d B u t t o n   =   " " 
 
 	 	 	 C a s e   F B 1   >   2 5 0 
 
 	 	 	 	 P r i n t   " r e d " 
 
 	 	 	 	 P r e s s e d B u t t o n   =   " r e d " 
 
 	 	 	 	 E x e c u t e C o b o t F r o m S e l e c t e d L i n e 
 
 	 	 	 C a s e   F B 1   >   1 2 0 
 
 	 	 	 	 P r i n t   " w h i t e " 
 
 	 	 	 	 P r e s s e d B u t t o n   =   " w h i t e " 
 
 	 	 	 	 E x e c C o b o t 
 
 	 	 	 C a s e   F B 1   >   5 6 
 
 	 	 	 	 P r i n t   " g r e e n " 
 
 	 	 	 	 P r e s s e d B u t t o n   =   " g r e e n " 
 
 	 	 	 	 A r r o w D o w n C o b o t 
 
 	 	 	 C a s e   F B 1   >   1 5 
 
 	 	 	 	 P r i n t   " b l u e " 
 
 	 	 	 	 P r e s s e d B u t t o n   =   " b l u e " 
 
 	 	 	 	 A r r o w U p C o b o t 
 
 	 	 	 C a s e E l s e 
 
 	 	 	 	 P r i n t   " y e l l o w " 
 
 	 	 	 	 P r e s s e d B u t t o n   =   " y e l l o w " 
 
 	 	 E n d S e l e c t 
 
 	 E n d I f 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   R e a r m   b u t t o n s 
 
 	 I f   F B 1   >   5 0 0 
 
 	 	 F B 0   =   0 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   C l o s e S c o p e s 
 
 	 L o a d   C l o s e A p p s   T h e r e m i n o _ S i g n a l S c o p e _ M 1 . e x e 
 
 	 L o a d   C l o s e A p p s   T h e r e m i n o _ S i g n a l S c o p e _ M 2 . e x e 
 
 	 L o a d   C l o s e A p p s   T h e r e m i n o _ S i g n a l S c o p e _ M 3 . e x e 
 
 	 L o a d   C l o s e A p p s   T h e r e m i n o _ S i g n a l S c o p e _ M 4 . e x e 
 
 	 L o a d   C l o s e A p p s   T h e r e m i n o _ S i g n a l S c o p e _ M 5 . e x e 
 
 	 L o a d   C l o s e A p p s   T h e r e m i n o _ S i g n a l S c o p e _ F P S . e x e 
 
 R e t u r n 
 
 
 
 L a b e l   O p e n S c o p e _ 1 
 
 	 L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 1 . e x e 
 
 R e t u r n 
 
 
 
 L a b e l   O p e n S c o p e _ 2 
 
 	 L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 2 . e x e 
 
 R e t u r n 
 
 
 
 L a b e l   O p e n S c o p e _ 3 
 
 	 L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 3 . e x e 
 
 R e t u r n 
 
 
 
 L a b e l   O p e n S c o p e _ 4 
 
 	 L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 4 . e x e 
 
 R e t u r n 
 
 
 
 L a b e l   O p e n S c o p e _ 5 
 
 	 L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 5 . e x e 
 
 R e t u r n 
 
 
 
 L a b e l   O p e n F P S 
 
 	 L o a d   T h e r e m i n o _ S i g n a l S c o p e _ F P S . e x e 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%  %%%
 
 '   Q%  L E D   C O L O R S                                                                   Q%  %      %%    %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%
 
 L a b e l   R e d O n 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 R e t u r n 
 
 
 
 L a b e l   M a g e n t a O n 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 R e t u r n 
 
 
 
 L a b e l   Y e l l o w O n 
 
 	 S l o t   S l o t _ L e d R   =   9 0 0 
 
 	 S l o t   S l o t _ L e d G   =   4 0 0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 R e t u r n 
 
 
 
 L a b e l   G r e e n O n 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 R e t u r n 
 
 
 
 L a b e l   B l u e O n 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 R e t u r n 
 
 
 
 L a b e l   W h i t e O n 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 R e t u r n 
 
 
 
 L a b e l   R g b O f f 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 R e t u r n 
 
 
 
 L a b e l   R e d B l i n k 
 
 	 R e d O n 
 
 	 W h i t e O n 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%    %%%%  %%%%  %%  %%      %%%    %%%%  %%%%  %%%
 
 '   Q%    C O M M A N D S   F R O M   C O B O T         Q%    %        %    %  %  %  %      %%      %        %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%%  %%%%  %      %  %  %    %  %%%%  %%%%  %%%%
 
 L a b e l   E v e n t _ E x t e r n a l C o m m a n d s 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   D o   n o t   p r i n t   l i n e s   c o n t a i n i n g   ' ' 
 
 	 ' P r i n t   "   E x e c :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 S e l e c t   C o m m a n d T e x t 
 
 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   A C T I O N S 
 
 	 	 C a s e   " R e d O n " 
 
 	 	 	 R e d O n 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " G r e e n O n " 
 
 	 	 	 G r e e n O n 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " B l u e O n " 
 
 	 	 	 B l u e O n 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " W h i t e O n " 
 
 	 	 	 W h i t e O n 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " M a g e n t a O n " 
 
 	 	 	 M a g e n t a O n 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " Y e l l o w O n " 
 
 	 	 	 Y e l l o w O n 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " B e e p " 
 
 	 	 	 B e e p   8 8 0 - 1 0 0 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " P a u s e " 
 
 	 	 	 W a i t   S e c o n d s   G e t S e p a r a t e d S t r i n g ( C o m m a n d T e x t ,   1 ) 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " S t a r t P u m p " 
 
 	 	 	 S t a r t P u m p 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " S t o p P u m p " 
 
 	 	 	 S t o p P u m p 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " H o m i n g 1 " 
 
 	 	 	 H o m i n g 1 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " H o m i n g 2 " 
 
 	 	 	 H o m i n g 2 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " H o m i n g 3 " 
 
 	 	 	 H o m i n g 3 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " H o m i n g 4 " 
 
 	 	 	 H o m i n g 4 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " H o m i n g 5 " 
 
 	 	 	 H o m i n g 5 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " M e m o r i z e Q r C o d e " 
 
 	 	 	 V a r i a b l e   N u m e r i c   M Q R 1 
 
 	 	 	 F o r   M Q R 1   =   1   T o   5 
 
 	 	 	 	 Q r C o d e   =   S l o t T e x t ( S l o t _ R e s p o n s e s F r o m Q R D e c o d e ) 
 
 	 	 	 	 
 
 	 	 	 	 P r i n t   Q r C o d e 
 
 	 	 	 	 I f   Q r C o d e   < >   " " 
 
 	 	 	 	 	 E x i t 
 
 	 	 	 	 E n d I f 
 
 	 	 	 	 I f   M Q R 1   =   5 
 
 	 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t o p E x e c u t i o n ) 
 
 	 	 	 	 E n d I f 
 
 	 	 	 	 W a i t   S e c o n d s   1 
 
 	 	 	 N e x t 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " E x e c Q r C o d e " 
 
 	 	 	 E x e c Q R c o d e 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " S t a r t F i c h e s P i c k " 
 
 	 	 	 S t a r t F i c h e s P i c k 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " E n d O f T a s k " 
 
 	 	 	 E n d O f T a s k 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " E x e c u t i n g " 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e E l s e 
 
 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 P r i n t   C R L F   +   "   U n r e c o g n i z e d   c o m m a n d :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 	 	 B e e p 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 	 S t o p 	 	 	 	 	 	 	 	 ' 
 
 	 E n d S e l e c t 
 
 R e t u r n 
 
 
 
 L a b e l   C l e a r C o m m a n d 
 
 	 S l o t T e x t ( S l o t _ E x t e r n a l C o m m a n d s )   =   " " 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %%  %      %%%%
 
 '   Q%  W A N P Y   5                                                                         Q%  %      %  %%%%  %  %%      %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%    %    %  %    %      %%%%
 
 L a b e l   W a n p y J o b 5 
 
 	 T T S   S p e a k   " W a n p y   j o b   s t a r t e d . " 
 
 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 C o n t r o l s   C l e a r T e x t B o x 
 
 	 S t a r t T i m e   =   E l a p s e d T i m e 
 
 	 W a n p y _ A 5 t o B 1 
 
 R e t u r n 
 
 
 
 V a r i a b l e   S t r i n g   S t a t u s   =   " A 5 t o B 1 " 
 
 L a b e l   E n d O f T a s k 
 
 	 P r i n t T i m e 
 
 	 S t a r t T i m e P a r t i a l   =   E l a p s e d T i m e 
 
 	 S e l e c t   S t a t u s 
 
 	 	 C a s e   " A 5 t o B 1 " 
 
 	 	 	 ' W a n p y _ B 1 t o A 5 
 
 	 	 	 W a n p y _ A 4 t o B 2 
 
 	 	 C a s e   " A 4 t o B 2 " 
 
 	 	 	 W a n p y _ A 3 t o B 3 
 
 	 	 C a s e   " A 3 t o B 3 " 
 
 	 	 	 W a n p y _ A 2 t o B 4 
 
 	 	 C a s e   " A 2 t o B 4 " 
 
 	 	 	 W a n p y _ A 1 t o B 5 
 
 	 	 C a s e   " A 1 t o B 5 " 
 
 	 	 	 W a n p y _ B 5 t o A 1 
 
 	 	 C a s e   " B 5 t o A 1 " 
 
 	 	 	 W a n p y _ B 4 t o A 2 
 
 	 	 C a s e   " B 4 t o A 2 " 
 
 	 	 	 W a n p y _ B 3 t o A 3 
 
 	 	 C a s e   " B 3 t o A 3 " 
 
 	 	 	 W a n p y _ B 2 t o A 4 
 
 	 	 C a s e   " B 2 t o A 4 " 
 
 	 	 	 W a n p y _ B 1 t o A 5 
 
 	 	 C a s e   " B 1 t o A 5 " 
 
 	 	 	 S t a r t T i m e   =   E l a p s e d T i m e 
 
 	 	 	 P r i n t   C R L F 
 
 	 	 	 W a n p y _ A 5 t o B 1 
 
 	 E n d S e l e c t 
 
 R e t u r n 
 
 
 
 V a r i a b l e   N u m e r i c   S t a r t T i m e 
 
 V a r i a b l e   N u m e r i c   S t a r t T i m e P a r t i a l 
 
 V a r i a b l e   S t r i n g   T i m e 
 
 L a b e l   P r i n t T i m e 
 
 	 T i m e   =   " P a r t i a l   t i m e   =   " 
 
 	 T i m e   =   T i m e   +   P a d L e f t ( F o r m a t ( E l a p s e d T i m e   -   S t a r t T i m e P a r t i a l ,   " 0 . 0 " ) , 4 ) 
 
 	 T i m e   =   T i m e   +   "       T o t a l   t i m e   =   " 
 
 	 T i m e   =   T i m e   +   P a d L e f t ( F o r m a t ( E l a p s e d T i m e   -   S t a r t T i m e ,   " 0 . 0 " ) , 4 ) 
 
 	 P r i n t   S t a t u s   +   "     "   +   T i m e   +   C R L F 
 
 R e t u r n 
 
 
 
 L a b e l   W a n p y _ A 5 t o B 1 
 
 	 S t a t u s   =   " A 5 t o B 1 " 
 
 	 Y e l l o w O n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   W a n p y _ A 5 t o B 1 . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a n p y _ A 4 t o B 2 
 
 	 S t a t u s   =   " A 4 t o B 2 " 
 
 	 Y e l l o w O n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   W a n p y _ A 4 t o B 2 . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a n p y _ A 3 t o B 3 
 
 	 S t a t u s   =   " A 3 t o B 3 " 
 
 	 Y e l l o w O n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   W a n p y _ A 3 t o B 3 . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a n p y _ A 2 t o B 4 
 
 	 S t a t u s   =   " A 2 t o B 4 " 
 
 	 Y e l l o w O n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   W a n p y _ A 2 t o B 4 . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a n p y _ A 1 t o B 5 
 
 	 S t a t u s   =   " A 1 t o B 5 " 
 
 	 Y e l l o w O n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   W a n p y _ A 1 t o B 5 . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a n p y _ B 5 t o A 1 
 
 	 S t a t u s   =   " B 5 t o A 1 " 
 
 	 Y e l l o w O n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   W a n p y _ B 5 t o A 1 . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a n p y _ B 4 t o A 2 
 
 	 S t a t u s   =   " B 4 t o A 2 " 
 
 	 Y e l l o w O n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   W a n p y _ B 4 t o A 2 . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a n p y _ B 3 t o A 3 
 
 	 S t a t u s   =   " B 3 t o A 3 " 
 
 	 Y e l l o w O n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   W a n p y _ B 3 t o A 3 . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a n p y _ B 2 t o A 4 
 
 	 S t a t u s   =   " B 2 t o A 4 " 
 
 	 Y e l l o w O n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   W a n p y _ B 2 t o A 4 . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a n p y _ B 1 t o A 5 
 
 	 S t a t u s   =   " B 1 t o A 5 " 
 
 	 Y e l l o w O n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   W a n p y _ B 1 t o A 5 . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%    %%%%      %%%%
 
 '   Q%  Q R   C O D E                                                                         Q%  %    %    %%%%      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%%  %  %%      %%%%
 
 L a b e l   J o b Q r C o d e 
 
 	 T T S   S p e a k   " Q R   c o d e   r e c o g n i t i o n   a n d   a c t i o n   r e l a t e d   i s   s t a r t e d . " 
 
 	 S t a r t F i c h e s P i c k 
 
 R e t u r n 
 
 
 
 L a b e l   S t a r t F i c h e s P i c k 
 
 	 B l u e O n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   f i c h e s _ p i c k . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 L a b e l   E x e c Q R c o d e 
 
 	 V a r i a b l e   S t r i n g   Q r C o d e 
 
 	 S e l e c t   Q r C o d e 
 
 	 	 C a s e   " W H I T E " 
 
 	 	 	 W h i t e O n 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   F i c h e s _ p l a c e _ w h i t e . t x t " ) 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 C a s e   " R E D " 
 
 	 	 	 R e d O n 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   F i c h e s _ p l a c e _ r e d . t x t " ) 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 C a s e   " G R E E N " 
 
 	 	 	 G r e e n O n 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   F i c h e s _ p l a c e _ g r e e n . t x t " ) 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 C a s e   " B L U E " 
 
 	 	 	 B l u e O n 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   F i c h e s _ P l a c e _ b l u e . t x t " ) 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 C a s e   " B L A C K " 
 
 	 	 	 R g b O f f 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   F i c h e s _ p l a c e _ b l a c k . t x t " ) 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 C a s e E l s e 
 
 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 P r i n t   C R L F   +   "   U n r e c o g n i z e d   c o l o r   c o m m a n d :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 	 	 S t o p P u m p 
 
 	 	 	 B e e p 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 	 S t o p 
 
 	 E n d S e l e c t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%%  %    %  %%  %
 
 '   Q%  T U N A                                                                               Q%      %      %    %  %  %%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%      %      %%%%  %    %
 
 L a b e l   T u n a C a n s 
 
 	 T T S   S p e a k   " T u n a   c a n   h a n d l i n g . " 
 
 	 Y e l l o w O n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   T u n a _ C a n s . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %      %  %%%%
 
 '   Q%      S L I D E R S                                                                     Q%  %%%%  %      %  %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%  %  %%%%
 
 V a r i a b l e   N u m e r i c   S L D 
 
 L a b e l   S l i d e r s 
 
 	 B l u e O n 
 
 	 ' B u t t o n   S l i d e r s   C o l o r   F l a s h i n g 7   B l u e   W h i t e 
 
 	 F o r   S L D   =   1   T o   I n f i n i t y 
 
 	 	 S l o t ( S l o t _ M 1 )     =   S l o t ( S l o t _ S l i d e r 1 ) 
 
 	 	 S l o t ( S l o t _ M 2 )     =   S l o t ( S l o t _ S l i d e r 2 ) 
 
 	 	 S l o t ( S l o t _ M 3 )     =   S l o t ( S l o t _ S l i d e r 3 )   +   S l o t ( S l o t _ S l i d e r 2 ) 
 
 	 	 S l o t ( S l o t _ M 4 )     =   S l o t ( S l o t _ S l i d e r 4 ) 
 
 	 	 S l o t ( S l o t _ M 5 )     =   S l o t ( S l o t _ S l i d e r 5 ) 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%  %%
 
 '   Q%    S A Y                                                                               Q%  %%%%  %%%%    %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %      %
 
 L a b e l   S a y 
 
 	 T T S   S e l e c t V o i c e   " E N G F " 
 
 	 T T S   S p e a k   " T o d a y   i s   a   b e a u t i f u l   d a y   b e c a u s e   w e   s p e n d   t i m e   t o g e t h e r . " 
 
 	 W a i t   T T S r e a d y 
 
 	 
 
 	 T T S   S e l e c t V o i c e   " I T A   F E M " 
 
 	 T T S   S p e a k   " O g g i      u n a   b e l l a   g i o r n a t a   p e r c h e   p a s s e r e m o   d e l   t e m p o   i n s i e m e . " 
 
 	 W a i t   T T S r e a d y 
 
 	 
 
 	 T T S   S e l e c t V o i c e   " J P N " 
 
 	 T T S   S p e a k   " y_0a0o0 N}k0Bf0NT0Y0n0g00Neo0W0D0eg0Y00" 
 
 	 W a i t   T T S r e a d y 
 
 	 
 
 	 T T S   S e l e c t V o i c e   " Z H O " 
 
 	 T T S   S p e a k   " N)Y/f}Yv N)YV:NbNqQ^eIQ0" 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %  %%%%  %%%%
 
 '   Q%    V O I C E   C O M M A N D S                                                         Q%    %  %    %    %  %  %        %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%      %      %%%%  %  %%%%  %%%%
 
 L a b e l   V o i c e 
 
 	 C l e a r V o i c e C o m m a n d 
 
 	 I f   V o i c e C o m m a n d s S t a t u s   =   " a c t i v e " 
 
 	 	 V o i c e C o m m a n d s S t a t u s   =   " " 
 
 	 	 ' B u t t o n   V o i c e   C o l o r   P a l e T u r q u o i s e 
 
 	 E l s e 
 
 	 	 V o i c e C o m m a n d s S t a t u s   =   " a c t i v e " 
 
 	 	 ' B u t t o n   V o i c e   C o l o r   F l a s h i n g 7   O r a n g e   W h i t e 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 V a r i a b l e   S t r i n g   W o r d 
 
 V a r i a b l e   S t r i n g   V o i c e C o m m a n d s S t a t u s 
 
 L a b e l   I n t e r p r e t a t e V o i c e C o m m a n d s 
 
 	 I f   V o i c e C o m m a n d s S t a t u s   =   " a c t i v e " 
 
 	 	 I f   S l o t T e x t ( S l o t _ W o r d R e c o g n i z e d )   < >   " " 
 
 	 	 	 W o r d   =   S l o t T e x t ( S l o t _ W o r d R e c o g n i z e d ) 
 
 	 	 	 P r i n t   W o r d   +   "   " 
 
 	 	 	 I n t e r p r e t a t e 
 
 	 	 	 C l e a r V o i c e C o m m a n d 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 V a r i a b l e   S t r i n g   S h o w i n g T y p e 
 
 L a b e l   I n t e r p r e t a t e 
 
 	 S e l e c t   W o r d 
 
 	 	 C a s e   " s h o w . f i c h e s " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 	 	 	 	 W h i t e O n 
 
 	 	 	 	 S h o w i n g T y p e   =   " F i c h e s " 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V o i c e _ S h o w _ F i c h e s . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " s h o w . w a n p y " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 	 	 	 	 Y e l l o w O n 
 
 	 	 	 	 S h o w i n g T y p e   =   " W a n p y " 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V o i c e _ S h o w _ W a n p y . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " s h o w . t u n a " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 	 	 	 	 G r e e n O n 
 
 	 	 	 	 S h o w i n g T y p e   =   " T u n a " 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V o i c e _ S h o w _ T u n a . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 	 E n d I f 
 
 	 	 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 C a s e   " r e l e a s e " 
 
 	 	 	 S e l e c t   S h o w i n g T y p e 
 
 	 	 	 	 C a s e   " f i c h e s " 
 
 	 	 	 	 	 W h i t e O n 
 
 	 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V o i c e _ R e l e a s e _ F i c h e s . t x t " ) 
 
 	 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 	 	 	 S h o w i n g T y p e   =   " " 
 
 	 	 	 	 C a s e   " w a n p y " 
 
 	 	 	 	 	 Y e l l o w O n 
 
 	 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V o i c e _ R e l e a s e _ W a n p y . t x t " ) 
 
 	 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 	 	 	 S h o w i n g T y p e   =   " " 
 
 	 	 	 	 C a s e   " t u n a " 
 
 	 	 	 	 	 G r e e n O n 
 
 	 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V o i c e _ R e l e a s e _ T u n a . t x t " ) 
 
 	 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 	 	 	 S h o w i n g T y p e   =   " " 
 
 	 	 	 	 C a s e E l s e 
 
 	 	 	 	 	 ' 
 
 	 	 	 E n d S e l e c t 
 
 	 	 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 C a s e   " g o t o . c e n t e r " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 	 	 	 	 R e d O n 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V o i c e _ g o t o _ C e n t e r . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " g o t o . H o m i n g " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 	 	 	 	 M a g e n t a O n 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V o i c e _ g o t o _ H o m i n g . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S e l e c t L i n e   1 ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t a r t E x e c u t i o n ) 
 
 	 	 	 E n d I f 
 
 	 	 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 C a s e E l s e 
 
 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 P r i n t   C R L F   +   "   U n r e c o g n i z e d   c o m m a n d :   "   +   W o r d   +   C R L F 
 
 	 	 	 B e e p 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 	 S t o p 
 
 	 E n d S e l e c t 
 
 R e t u r n 
 
 
 
 L a b e l   C l e a r V o i c e C o m m a n d 
 
 	 S l o t T e x t ( S l o t _ W o r d R e c o g n i z e d )   =   " " 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%%  %%%%  %  %%%%  %
 
 '   Q%  T   R   I   A   L   S                                                                 Q%      %      %%%%  %  %%%%  %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%      %      %  %%  %  %    %  %%%
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%  %  %%%%
 
 '   Q%  E N C O D E R S                                                                       Q%  %%%    %  %%  %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %  %%%%
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 1 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 1 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 1 
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 2 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 2 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 2 
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 3 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 3 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 3 
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 4 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 4 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 4 
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 5 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 5 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 5 
 
 
 
 L a b e l   E n c o d e r 
 
 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   e n c o d e r 1   t o   m o t   1   o r   6 
 
 	 E n c o d e r S t e p s 1   =   S l o t ( S l o t _ E n c o d e r 1 ) 
 
 	 D i f f e r e n c e 1   =   E n c o d e r S t e p s 1   -   O l d E n c o d e r S t e p s 1 
 
 	 O l d E n c o d e r S t e p s 1   =   E n c o d e r S t e p s 1 
 
 	 I f   D i f f e r e n c e 1   >   3 2 0 0 0 
 
 	 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   -   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 1   <   - 3 2 0 0 0 
 
 	 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   +   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ E n c o d e r S l o w )   <   5 0 0 
 
 	 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   *   0 . 1 
 
 	 E n d I f 
 
 	 I f   P r e s s e d B u t t o n   < >   " y e l l o w " 
 
 	 	 S l o t ( S l o t _ M 1 )   =   L i m i t ( S l o t   ( S l o t _ M 1 )   +   D i f f e r e n c e 1 ,   - 1 3 0 ,   + 1 3 0 ) 
 
 	 E l s e 
 
 	 	 ' S l o t ( S l o t _ M 6 )   =   L i m i t ( S l o t   ( S l o t _ M 6 )   +   D i f f e r e n c e 1 ,   - 1 3 0 ,   + 1 3 0 ) 
 
 	 E n d I f 
 
         ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   r e a d   e n c o d e r 2 
 
 	 E n c o d e r S t e p s 2   =   S l o t ( S l o t _ E n c o d e r 2 ) 
 
 	 D i f f e r e n c e 2   =   E n c o d e r S t e p s 2   -   O l d E n c o d e r S t e p s 2 
 
 	 O l d E n c o d e r S t e p s 2   =   E n c o d e r S t e p s 2 
 
 	 I f   D i f f e r e n c e 2   >   3 2 0 0 0 
 
 	 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   -   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 2   <   - 3 2 0 0 0 
 
 	 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   +   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ E n c o d e r S l o w )   <   5 0 0 
 
 	 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   *   0 . 1 
 
 	 E n d I f 
 
 	 S l o t ( S l o t _ M 2 )   =   L i m i t ( S l o t   ( S l o t _ M 2 )   +   D i f f e r e n c e 2 ,   - 1 3 0 ,   + 1 3 0 ) 
 
 	 
 
         ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   r e a d   e n c o d e r 3 
 
 	 E n c o d e r S t e p s 3   =   S l o t ( S l o t _ E n c o d e r 3 ) 
 
 	 D i f f e r e n c e 3   =   E n c o d e r S t e p s 3   -   O l d E n c o d e r S t e p s 3 
 
 	 O l d E n c o d e r S t e p s 3   =   E n c o d e r S t e p s 3 
 
 	 I f   D i f f e r e n c e 3   >   3 2 0 0 0 
 
 	 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   -   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 3   <   - 3 2 0 0 0 
 
 	 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   +   6 5 5 3 6 
 
 	 E n d I f 
 
 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   *   0 . 5 
 
 	 I f   S l o t ( S l o t _ E n c o d e r S l o w )   <   5 0 0 
 
 	 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   *   0 . 1 
 
 	 E n d I f 
 
 	 S l o t ( S l o t _ M 3 )   =   L i m i t ( S l o t   ( S l o t _ M 3 )   +   D i f f e r e n c e 3 ,   - 1 3 0 ,   + 1 3 0 ) 
 
 	 
 
 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   r e a d   e n c o d e r 4 
 
 	 E n c o d e r S t e p s 4   =   S l o t ( S l o t _ E n c o d e r 4 ) 
 
 	 D i f f e r e n c e 4   =   E n c o d e r S t e p s 4   -   O l d E n c o d e r S t e p s 4 
 
 	 O l d E n c o d e r S t e p s 4   =   E n c o d e r S t e p s 4 
 
 	 I f   D i f f e r e n c e 4   >   3 2 0 0 0 
 
 	 	 D i f f e r e n c e 4   =   D i f f e r e n c e 4   -   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 4   <   - 3 2 0 0 0 
 
 	 	 D i f f e r e n c e 4   =   D i f f e r e n c e 4   +   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ E n c o d e r S l o w )   <   5 0 0 
 
 	 	 D i f f e r e n c e 4   =   D i f f e r e n c e 4   *   0 . 0 1 
 
 	 E n d I f 
 
 	 S l o t ( S l o t _ M 4 )   =   L i m i t ( S l o t   ( S l o t _ M 4 )   +   D i f f e r e n c e 4 ,   - 1 7 0 ,   + 1 7 0 ) 
 
 	 
 
 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   r e a d   e n c o d e r 5 
 
 	 E n c o d e r S t e p s 5   =   S l o t ( S l o t _ E n c o d e r 5 ) 
 
 	 D i f f e r e n c e 5   =   E n c o d e r S t e p s 5   -   O l d E n c o d e r S t e p s 5 
 
 	 O l d E n c o d e r S t e p s 5   =   E n c o d e r S t e p s 5 
 
 	 I f   D i f f e r e n c e 5   >   3 2 0 0 0 
 
 	 	 D i f f e r e n c e 5   =   D i f f e r e n c e 5   -   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 5   <   - 3 2 0 0 0 
 
 	 	 D i f f e r e n c e 5   =   D i f f e r e n c e 5   +   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ E n c o d e r S l o w )   <   5 0 0 
 
 	 	 D i f f e r e n c e 5   =   D i f f e r e n c e 5   *   0 . 1 
 
 	 E n d I f 
 
 	 S l o t ( S l o t _ M 5 )   =   L i m i t ( S l o t   ( S l o t _ M 5 )   +   D i f f e r e n c e 5 ,   - 1 3 0 ,   + 1 3 0 ) 
 
 R e t u r n 
 
 
 
 L a b e l   R e s e t E n c o d e r s 
 
 	 O l d E n c o d e r S t e p s 1   =   S l o t ( S l o t _ E n c o d e r 1 ) 
 
 	 O l d E n c o d e r S t e p s 2   =   S l o t ( S l o t _ E n c o d e r 2 ) 
 
 	 O l d E n c o d e r S t e p s 3   =   S l o t ( S l o t _ E n c o d e r 3 ) 
 
 	 O l d E n c o d e r S t e p s 4   =   S l o t ( S l o t _ E n c o d e r 4 ) 
 
 	 O l d E n c o d e r S t e p s 5   =   S l o t ( S l o t _ E n c o d e r 5 ) 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %
 
 '   Q%  C A L I B R A T I O N S                                                               Q%  %        %%%%  %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %  %%%%
 
 L a b e l   R e s e t A l l M u l t i t u r n V a l u e s 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( " R e s e t A l l M u l t i t u r n V a l u e s " ) 
 
 R e t u r n 
 
 
 
 L a b e l   C o p y P o s i t i o n s T o D e s t i n a t i o n s 
 
 	 S l o t   S l o t _ M 1   =   S l o t ( S l o t _ M 1 p o s ) 
 
 	 S l o t   S l o t _ M 2   =   S l o t ( S l o t _ M 2 p o s ) 
 
 	 S l o t   S l o t _ M 3   =   S l o t ( S l o t _ M 3 p o s ) 
 
 	 S l o t   S l o t _ M 4   =   S l o t ( S l o t _ M 4 p o s ) 
 
 	 S l o t   S l o t _ M 5   =   S l o t ( S l o t _ M 5 p o s ) 
 
 R e t u r n 
 
 
 
 L a b e l   A c t i v a t e M o t o r s 
 
 	 V a r i a b l e   N u m e r i c   A M 1 
 
 	 F o r   A M 1   =   1   T o   5 
 
 	 	 S e t M o t o r _ O N ( A M 1 ) 
 
 	 N e x t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e t T o r q u e   5 5 0 "   ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e t A c c e l e r a t i o n   1 0 0 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e t S p e e d   1 0 0 0 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( S h o w W i n d o w ) 
 
 R e t u r n 
 
 
 
 
 
 L a b e l   C a l i b r a t e M o t o r T o Z e r o   	 ' ( M o t o r   N u m b e r ) 
 
 	 V a r i a b l e   N u m e r i c   C M T Z 1 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( " C a l i b r a t e   M o t o r   "   +   C M T Z 1   +   "   T o   0 " ) 
 
 	 C M T Z 1   =   ( C M T Z 1 * 1 0 0 - 1 0 0 ) 
 
 	 S l o t ( S l o t _ M 1   +   C M T Z 1 )   =   S l o t ( S l o t _ M 1 p o s   +   C M T Z 1 ) 
 
 R e t u r n 
 
 
 
 L a b e l   S e t M o t o r C e n t e r H e r e   	 ' ( M o t o r   N u m b e r ) 
 
 	 V a r i a b l e   N u m e r i c   S M C 1 
 
 	 S M C 1   =   S l o t _ M 1 c e n t e r   +   ( S M C 1 * 1 0 0 - 1 0 0 ) 
 
 	 S l o t   S M C 1   =   1 2 8 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t   S M C 1   =   1 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 R e t u r n 
 
 
 
 L a b e l   S e t M o t o r _ O N   	 ' ( M o t o r   N u m b e r ) 
 
 	 V a r i a b l e   N u m e r i c   S M O N 1 
 
 	 S M O N 1   =   S l o t _ M 1 c e n t e r   +   ( S M O N 1 * 1 0 0 - 1 0 0 ) 
 
 	 S l o t   S M O N 1   =   0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t   S M O N 1   =   1 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 R e t u r n 
 
 
 
 L a b e l   S e t M o t o r _ O F F   	 ' ( M o t o r   N u m b e r ) 
 
 	 V a r i a b l e   N u m e r i c   S M O F F 1 
 
 	 S M O F F 1   =   S l o t _ M 1 c e n t e r   +   ( S M O F F 1 * 1 0 0 - 1 0 0 ) 
 
 	 S l o t   S M O F F 1   =   0 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t   S M O F F 1   =   1 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 R e t u r n 
 
 
 
 L a b e l   W a i t M o t o r s N o t M o v i n g 
 
 	 V a r i a b l e   N u m e r i c   W M N 1 
 
 	 F o r   W M N 1   =   1   T o   5 
 
 	 	 W a i t M o t o r ( W M N 1 ) ( 0 . 1 ) 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   T h e   " W a i t   s e c o n d s "   p a r a m e t e r   i s   a   i n i t i a l   d e l a y 
 
 '   I f   t h i s   d e l a y   i s   s h o r t   a n d   t h e   m o t o r   s t a r t s   s l o w l y 
 
 '   t h e n   t h e   " W a i t M o t o r "   f u n c t i o n s   c o u l d   e x i t   i m m e d i a t e l y 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 L a b e l   W a i t M o t o r   	 	 	 ' ( M o t o r   N u m b e r ) ( W a i t   s e c o n d s ) 
 
 	 V a r i a b l e   N u m e r i c   W M 1 
 
 	 V a r i a b l e   N u m e r i c   W M 2 
 
 	 W M 1   =   ( W M 1 * 1 0 0 - 1 0 0 ) 
 
 	 W a i t   S e c o n d s   W M 2 
 
 	 V a r i a b l e   N u m e r i c   W M 3 
 
 	 F o r   W M 3   =   0   T o   I n f i n i t y 
 
 	 	 I f   S l o t ( S l o t _ M 1   +   2   +   W M 1 )   =   0   O r   K e y ( " C T R L " )     '   t e s t   V e l o c i t y 
 
 	 	 	 E x i t   F o r 
 
 	 	 E n d I f 
 
 	 	 ' I f   S l o t ( S l o t _ M 1   +   6   +   W M 1 )   =   0   O r   K e y ( " C T R L " )   '   t e s t   M o v i n g 
 
 	 	 ' 	 E x i t   F o r 
 
 	 	 ' E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   M o v e M o t o r T o   	 	 	 ' ( M o t o r   N u m b e r ) ( D e s t i n a t i o n ) ( W a i t   s e c o n d s ) 
 
 	 V a r i a b l e   N u m e r i c   M M T 1 
 
 	 V a r i a b l e   N u m e r i c   M M T 2 
 
 	 V a r i a b l e   N u m e r i c   M M T 3 
 
 	 S l o t ( S l o t _ M 1   +   M M T 1 * 1 0 0 - 1 0 0 )   =   M M T 2 
 
 	 W a i t M o t o r ( M M T 1 ) ( M M T 3 ) 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %    %  %%%%  %%  %%  %%%%
 
 '   Q%  H   O   M   I   N   G                                                                 Q%  %%%%  %    %  %  %  %  %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %    %  %%%%  %      %  %%%%
 
 L a b e l   H o m i n g 
 
 	 W h i t e O n 
 
 	 H o m i n g 4 
 
 	 W h i t e O n 
 
 	 H o m i n g 5 
 
 	 W h i t e O n 
 
 	 H o m i n g 2 
 
 	 W h i t e O n 
 
 	 H o m i n g 3 
 
 	 W h i t e O n 
 
 	 H o m i n g 1 
 
 	 G r e e n O n 
 
 R e t u r n 
 
 
 
 L a b e l   G o t o F i n a l P o s i t i o n s 
 
 	 S l o t ( S l o t _ M 1 )   =   0 
 
 	 S l o t ( S l o t _ M 2 )   =   0 
 
 	 S l o t ( S l o t _ M 3 )   =   0 
 
 	 S l o t ( S l o t _ M 4 )   =   9 0 
 
 	 S l o t ( S l o t _ M 5 )   =   0 
 
 R e t u r n 
 
 
 
 L a b e l   H o m i n g 1 
 
 	 O p e n S c o p e _ 1 
 
 	 H o m i n g M o t o r ( 1 ) ( - 0 . 3 ) ( 3 0 0 ) (   + 8 1 ) (   0 ) ( 4 0 0 ) ( 1 0 0 ) ( 1 0 0 0 ) 
 
 	 C l o s e S c o p e s 
 
 R e t u r n 
 
 
 
 L a b e l   H o m i n g 2 
 
 	 O p e n S c o p e _ 2 
 
 	 H o m i n g M o t o r ( 2 ) ( + 0 . 2 ) ( 2 0 0 ) (   - 3 8 ) ( + 2 2 ) ( 2 5 0 ) ( 1 0 0 ) ( 1 0 0 0 ) 
 
 	 C l o s e S c o p e s 
 
 R e t u r n 
 
 
 
 L a b e l   H o m i n g 3 
 
 	 O p e n S c o p e _ 3 
 
 	 H o m i n g M o t o r ( 3 ) ( + 0 . 2 ) ( 3 5 0 ) (   - 5 0 ) (   0 ) ( 4 0 0 ) ( 1 0 0 ) ( 1 0 0 0 ) 
 
 	 C l o s e S c o p e s 
 
 R e t u r n 
 
 
 
 L a b e l   H o m i n g 4 
 
 	 O p e n S c o p e _ 4 
 
 	 H o m i n g M o t o r ( 4 ) ( + 0 . 4 ) ( 3 0 0 ) ( - 9 3 . 5 ) ( 9 0 ) ( 3 5 0 ) ( 1 0 0 ) ( 1 0 0 0 ) 
 
 	 C l o s e S c o p e s 
 
 R e t u r n 
 
 
 
 L a b e l   H o m i n g 5 
 
 	 O p e n S c o p e _ 5 
 
 	 H o m i n g M o t o r ( 5 ) ( + 0 . 8 ) ( 3 0 0 ) ( - 1 2 7 ) (   0 ) ( 4 0 0 ) ( 1 0 0 ) ( 1 0 0 0 ) 
 
 	 C l o s e S c o p e s 
 
 R e t u r n 
 
 
 
 L a b e l   H o m i n g M o t o r 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   P a r a m e t e r s 
 
 	 V a r i a b l e   N u m e r i c   H M _ M o t N u m 
 
 	 V a r i a b l e   N u m e r i c   H M _ S e a r c h S p e e d 
 
 	 V a r i a b l e   N u m e r i c   H M _ S e a r c h T o r q u e 
 
 	 V a r i a b l e   N u m e r i c   H M _ M o v e T o C e n t e r 
 
 	 V a r i a b l e   N u m e r i c   H M _ M o v e T o F i n a l 
 
 	 V a r i a b l e   N u m e r i c   H M _ M o t o r T o r q u e 
 
 	 V a r i a b l e   N u m e r i c   H M _ M o t o r A c c 
 
 	 V a r i a b l e   N u m e r i c   H M _ M o t o r S p e e d 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   L o c a l   V a r i a b l e s 
 
 	 V a r i a b l e   N u m e r i c   H M _ M o t S l o t 
 
 	 H M _ M o t S l o t   =   S l o t _ M 1   +   H M _ M o t N u m   *   1 0 0   -   1 0 0 
 
 	 V a r i a b l e   N u m e r i c   H M 1 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 D i s a b l e A l l B u t t o n s 
 
 	 B l u e O n 
 
 	 F l a s h H o m i n g B u t t o n ( H M _ M o t N u m ) 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   1 0 0 0 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( S t o p E x e c u t i o n ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e t T o r q u e   "   +   H M _ M o t o r T o r q u e ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e t A c c e l e r a t i o n   "   +   H M _ M o t o r A c c ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e t S p e e d   "   +   H M _ M o t o r S p e e d ) 
 
 	 R e s e t A l l M u l t i t u r n V a l u e s 
 
 	 C a l i b r a t e M o t o r T o Z e r o ( H M _ M o t N u m )                   	 '   C a l i b r a t e   T o   Z e r o 
 
 	 F o r   H M 1   =   1   T o   I n f i n i t y 
 
 	 	 S l o t ( H M _ M o t S l o t )   =   S l o t ( H M _ M o t S l o t )   +   H M _ S e a r c h S p e e d 
 
 	 	 I f   A b s ( S l o t ( H M _ M o t S l o t   +   7 ) )   >   H M _ S e a r c h T o r q u e   '   + 7 = c u r r e n t 
 
 	 	 	 B e e p   2 2 0 0   5 0 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 I f   A b s ( S l o t ( H M _ M o t S l o t )   -   S l o t ( H M _ M o t S l o t   +   1 ) )   >   3 0 
 
 	 	 	 B e e p   8 0 0   1 0 0 
 
 	 	 	 S e t M o t o r C e n t e r H e r e ( 1 )                               '   S e t   C e n t e r   h e r e 
 
 	 	 	 C o p y P o s i t i o n s T o D e s t i n a t i o n s 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 0 1 
 
 	 N e x t 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 B e e p   2 5 0 0   5 0 
 
 	 C a l i b r a t e M o t o r T o Z e r o ( H M _ M o t N u m )                   	 '   C a l i b r a t e   T o   Z e r o 
 
 	 M o v e M o t o r T o ( H M _ M o t N u m ) ( H M _ M o v e T o C e n t e r ) ( 1 . 5 ) '   M o v e   t o   C e n t e r 
 
 	 C a l i b r a t e M o t o r T o Z e r o ( H M _ M o t N u m )                   	 '   C a l i b r a t e   t o   Z e r o 
 
 	 S e t M o t o r C e n t e r H e r e ( H M _ M o t N u m )       	 	 	 '   S e t   C e n t e r   h e r e 
 
 	 C a l i b r a t e M o t o r T o Z e r o ( H M _ M o t N u m )                   	 '   C a l i b r a t e   t o   Z e r o 
 
 	 M o v e M o t o r T o ( H M _ M o t N u m ) ( H M _ M o v e T o F i n a l ) ( 0 . 1 ) 	 '   M o v e   t o   F i n a l   p o s i t i o n 
 
 	 B e e p   2 8 0 0   2 0 0 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 E n a b l e A l l B u t t o n s 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 	 U n F l a s h H o m i n g B u t t o n s 
 
 R e t u r n 
 
 
 
 L a b e l   F l a s h H o m i n g B u t t o n 
 
 	 V a r i a b l e   N u m e r i c   F H B 1   '   F i r s t   P a r a m   =   M o t o r   N u m b e r 
 
 	 S e l e c t   	 F H B 1 
 
 	 	 C a s e   1 
 
 	 	 	 B u t t o n   H o m i n g 1   C o l o r   F l a s h i n g 6   B l u e   W h i t e 
 
 	 	 C a s e   2 
 
 	 	 	 B u t t o n   H o m i n g 2   C o l o r   F l a s h i n g 6   B l u e   W h i t e 
 
 	 	 C a s e   3 
 
 	 	 	 B u t t o n   H o m i n g 3   C o l o r   F l a s h i n g 6   B l u e   W h i t e 
 
 	 	 C a s e   4 
 
 	 	 	 B u t t o n   H o m i n g 4   C o l o r   F l a s h i n g 6   B l u e   W h i t e 
 
 	 	 C a s e   5 
 
 	 	 	 B u t t o n   H o m i n g 5   C o l o r   F l a s h i n g 6   B l u e   W h i t e 
 
 	 	 ' C a s e   6 
 
 	 	 ' 	 B u t t o n   H o m i n g 6   C o l o r   F l a s h i n g 6   B l u e   W h i t e 
 
 	 	 ' C a s e   7 
 
 	 	 ' 	 B u t t o n   H o m i n g 7   C o l o r   F l a s h i n g 6   B l u e   W h i t e 
 
 	 E n d S e l e c t 
 
 R e t u r n 
 
 
 
 L a b e l   U n F l a s h H o m i n g B u t t o n s 
 
 	 B u t t o n   H o m i n g 1   C o l o r   Y e l l o w 
 
 	 B u t t o n   H o m i n g 2   C o l o r   Y e l l o w 
 
 	 B u t t o n   H o m i n g 3   C o l o r   Y e l l o w 
 
 	 B u t t o n   H o m i n g 4   C o l o r   Y e l l o w 
 
 	 B u t t o n   H o m i n g 5   C o l o r   Y e l l o w 
 
 	 ' B u t t o n   H o m i n g 6   C o l o r   Y e l l o w 
 
 	 ' B u t t o n   H o m i n g 7   C o l o r   Y e l l o w 
 
 R e t u r n 
 
 
 
 
 
 